using Koakuma.Game;
using Koakuma.Game.UI;
using System;
using System.Collections;
using System.Collections.Generic;
using TGame.UI;
using UnityEngine;

public class InformationUIMediator : UIMediator<InformationUIView>
{
    protected override void OnShow(object arg)
    {
        base.OnShow(arg);
        view.AtkBossBtn.onClick.AddListener(AtkBoss);
        view.CloseBtn.onClick.AddListener(Close);
    }

    private void AtkBoss()
    {
        GameManager.Message.Post(new MessageType.EnterWorldBoss()).Coroutine();
    }

    protected override void OnHide()
    {
        view.CloseBtn.onClick.RemoveListener(Close);
        view.AtkBossBtn.onClick.RemoveListener(AtkBoss);
        base.OnHide();
    }
}
